import { Studycontent } from 'src/modules/studyresources/studycontent/entities/studycontent.entity';
import {
  Column,
  Entity,
  PrimaryGeneratedColumn,
  BeforeInsert,
  OneToOne,
  ManyToOne,
  OneToMany,
} from 'typeorm';
@Entity('studycontentsort')
export class Studycontentsort {
  @PrimaryGeneratedColumn('uuid')
  Id: string;

  @Column({ length: 100 })
  Name: string; //

  @Column({ default: 0 })
  Deleted: number; // 删除标志，1为未删除，0为已删除

  @OneToMany(() => Studycontent, (Studycontent) => Studycontent.sort)
  content: Studycontent[];
}
